// 2013-8-1下午06:00:39  net.betou.trade.main.dao.TradeDao.java

package net.betou.trade.main.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.Trade;

/**
 * 
 * @author 叶装装
 */
public interface TradeDao{


	 public Trade findById( Integer id );
	 
	 public Trade save( Trade bean );
	 
	 public Trade deleteById( Integer id );
	 
	 public Trade updateByUpdater( Updater< Trade > updater );
	 
	 public Trade findMyTrade( Integer userid, Integer adminId );
	 
	 // 分页数据的
	 public Pagination getPage( Boolean status, Integer selfId, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String filterStatus );
	 
	 public Pagination getPageByCriteria( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String sql );
	 
	 /**
	  * 获取前端的分页数据
	  * @param status
	  * @param groupId
	  * @param adminId
	  * @param pageNo
	  * @param pageSize
	  * @return
	  */
	 public Pagination getPage( Boolean status,  Integer groupId, List< Integer > idList,  int pageNo, int pageSize );
}
